package com.ruoyi.flowable.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "websocket服务端测试")
@RestController
@RequestMapping("/websocket")
public class WebSocketController {
    @PostMapping("/pushone")
    public AjaxResult pushone(@RequestParam("userId") String userId, @RequestParam("message") String message)
    {
        //WebSocketService.sendMessage(userId,message);
        return AjaxResult.success();
    }
}
